<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script src="https://cdn.jsdelivr.net/npm/vue"></script>
</head>
<style>
    button{
        width: 100px;
        height: 150px;
    }
</style>
<body>
<div id="app">

    <button v-on:click="nima">呵呵哒</button>

</div>

<script>
    var v = new Vue({
        el: '#app',
        methods:{
            nima:function(){
                alert("呵呵呵")
            }
        }

    })

    setTimeout(function () {
        v.nima = false;
    },2000)
</script>

</body>
</html>